Skip to content

feat: browser-based login with localhost callback#18

Merged
emilioacc merged 1 commit intomainfrom
feat/browser-login
Jan 26, 2026
Merged

feat: browser-based login with localhost callback#18
emilioacc merged 1 commit intomainfrom
feat/browser-login

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Replace manual connection string entry with OAuth-style browser login
  • CLI starts localhost server on random port
  • Opens browser to accounts.atxp.ai?cli_redirect=http://localhost:PORT/callback
  • Receives connection string via localhost callback after user authenticates
  • Same pattern as Claude Code uses for authentication

Flow

  1. User runs npx atxp login
  2. CLI starts localhost server, opens browser
  3. User logs in with Privy at accounts.atxp.ai
  4. Browser redirects to localhost with connection string
  5. CLI saves to ~/.atxp/config

Dependencies

Requires accounts PR to be deployed first: https://github.com/circuitandchisel/accounts/pull/303

Test plan

  • Wait for accounts PR to deploy
  • Run npm run dev -- login
  • Verify browser opens
  • Complete Privy login
  • Verify redirect back to CLI works
  • Verify connection string is saved

🤖 Generated with Claude Code

Replace manual connection string entry with OAuth-style browser login:
- CLI starts localhost server on random port
- Opens browser to accounts.atxp.ai with cli_redirect param
- Receives connection string via localhost callback
- Saves to ~/.atxp/config

Same pattern as Claude Code uses for authentication.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit 7df2a1b into main Jan 26, 2026
1 check passed
@emilioacc emilioacc deleted the feat/browser-login branch January 26, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant